
<div style="text-align:center;margin-bottom:10px;">
        <div class="shortcuts" style="padding-top: 7px;">        
        <style>
		a.button{margin-right:5px;}
		.htabs a{ display:block; font-size:12px;padding: 7px 10px 6px 10px;}
        .shortcuts a.button{height: 48px; min-width:60px;padding: 5px 7px;border: 1px solid #DBDBDB;background: url('view/image/box.png') repeat-x #ededed;color: #003a88;}
		.shortcuts a.button.active{ font-weight:900; color:#f00;}
        </style><?php if($this->config->get('config_news_sample_installed')){?>
        <a href="<?php echo $category;?>" class="button <?php if(strpos($route,'s/category')){ echo 'active';}?>"><img src="view/image/category.png" alt="" /><br> <?php echo $text_category; ?></a>
        <a href="<?php echo $article;?>" class="button <?php if(strpos($route,'s/article')){ echo 'active';}?>"><img src="view/image/order.png" alt="" /><br> <?php echo $text_article; ?></a>
        <a href="<?php echo $poll;?>" class="button <?php if(strpos($route,'s/poll')){ echo 'active';}?>"><img src="view/image/poll.png" alt="" /><br> <?php echo $text_poll; ?></a>
        <a href="<?php echo $author;?>" class="button <?php if(strpos($route,'s/author')){ echo 'active';}?>"><img src="view/image/user-group.png" alt="" /><br> <?php echo $text_author; ?></a>
        <a href="<?php echo $download;?>" class="button <?php if(strpos($route,'s/download')){ echo 'active';}?>"><img src="view/image/download.png" alt="" /><br> <?php echo $text_download; ?></a>
        <a href="<?php echo $comment;?>" class="button <?php if(strpos($route,'s/comment')){ echo 'active';}?>"><img src="view/image/review.png" alt="" /><br> <?php echo $text_comment; ?></a><?php } ?>
        <a href="<?php echo $setting;?>" class="button <?php if(strpos($route,'e/article_all_settings/settings')){ echo 'active';}?>"><img src="view/image/setting.png" alt="" /><br> <?php echo $text_setting; ?></a>
         <?php if ($this->config->get('config_news_sample_installed')) {?>  
        <a href="<?php echo $general;?>" class="button <?php if(strpos($route,'e/article_all_settings/info')){ echo 'active';}?>"><img src="view/image/information.png" alt="" /><br> <?php echo $text_newsinfo; ?></a>
        <?php } ?>
        </div>
</div> 
<script language="javascript" type="text/javascript">//<![CDATA[
/*strip unicode*/ 
function geturl(obj,target,ext){
var str = (document.getElementById(obj).value);
str= str.toLowerCase();
str= str.replace(/à|á|ạ|ả|ã|â|ầ|ấ|ậ|ẩ|ẫ|ă|ằ|ắ|ặ|ẳ|ẵ/g,"a");
str= str.replace(/è|é|ẹ|ẻ|ẽ|ê|ề|ế|ệ|ể|ễ/g,"e");
str= str.replace(/ì|í|ị|ỉ|ĩ/g,"i");
str= str.replace(/ò|ó|ọ|ỏ|õ|ô|ồ|ố|ộ|ổ|ỗ|ơ|ờ|ớ|ợ|ở|ỡ/g,"o");
str= str.replace(/ù|ú|ụ|ủ|ũ|ư|ừ|ứ|ự|ử|ữ/g,"u");
str= str.replace(/ỳ|ý|ỵ|ỷ|ỹ/g,"y");
str= str.replace(/đ/g,"d");
str= str.replace(/!|@|\$|%|\^|\*|\(|\)|\+|\=|\<|\>|\?|\/|,|\:|\'| |\"|\&|\#|\[|\]|~/g,"-");
str= str.replace(/_/g,"-");//repalce two '_' '_'to one 1 '-'
str= str.replace(/-+-/g,"-"); //repalce two '-' '-'to one 1 '-'
str= str.replace(/^\-+|\-+$/g,"");//cut '-' from first &end of the string
	if (str=='') {alert('You must enter Title!')}else{$('#'+target).val(str+ext);}
}
//]]></script>
